#微信小程序 浓五的酒馆
#功能：签到
#抓取浓五的酒馆Authorization
#青龙变量名  export nwdjgck=""

import os
import requests


url1='https://stdcrm.dtmiller.com/scrm-promotion-service/promotion/sign/today?promotionId=PI66596f56185fc0000a529e7d'
headers={
        "Authorization": os.environ.get("nwdjgck"),
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) XWEB/9129",
}
response = requests.get(url=url1,headers=headers)  # 签到
print(response.text)

if __name__ == '__main__':
    print('\n   白日依山尽，黄河入海流。\n   欲穷千里目，更上一层楼。\n')
    if os.environ.get("szssck"):
        tokenString = os.environ["nwdjgck"]
        if tokenString != '':
            apitokenList = tokenString.split("#")
        else:
            print('没有配置nwdjgck')
            exit()
    else:
        print('没有配置nwdjgck')
        exit()
